<template>
  <div>
    测试页
    <comment :commentData="item" v-for="(item,index) in list" :key="index"></comment>
  </div>
</template>

<script>
//引入组件A
import comment from "../components/recursion/comment";
export default {
  components: {
    comment
  },
  data() {
    return {
      list: [
        {
          content: "嘻嘻",
          parent: {
            content: "哈哈"
          }
        },
        {
          content: "空",
          parent: {
            content: "悟",
            parent: {
              content: "孙"
            }
          }
        }
      ]
    };
  }
};
</script>

<style lang="less" scoped>
</style>